#ifndef IMPL_H
#define IMPL_H

#include "sleep_api.h"
#include <stddef.h>
#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

#define ARRAY_SIZE(a) sizeof(a) / sizeof(a[0])

void sleep_impl(const smp_hr_t *list, size_t len, sleep_root **root);

#ifdef __cplusplus
}
#endif

#endif